package org.dtrd.modules.flup.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.flup.entity.po.DtrdEntRdFlupEvaluation;

/**
 * @author qr
 * @date 2022/1/6 10:57
 */
@ApiModel("复诊评价")
@Getter
@Setter
public class FlupEvaluation {

    @ApiModelProperty("复诊id")
    private Integer flupId;

    @ApiModelProperty("服务评价")
    private Integer serviceEvaluation;

    @ApiModelProperty("舒适度评价")
    private Integer comfortEvaluation;

    @ApiModelProperty("设备评价")
    private Integer equipmentEvaluation;

    @ApiModelProperty("其他建议")
    private String otherSuggest;

    public FlupEvaluation parseFromPO(DtrdEntRdFlupEvaluation po) {
        flupId = po.getFlupRecordId();
        serviceEvaluation = po.getServiceEvaluation();
        comfortEvaluation = po.getComfortEvaluation();
        equipmentEvaluation = po.getEquipmentEvaluation();
        otherSuggest = po.getOtherSuggest();
        return this;
    }
}
